package com.byb.server.service.mapper;

import com.byb.server.domain.*;
import com.byb.server.service.dto.EnsureScopeDTO;

import org.mapstruct.*;

/**
 * Mapper for the entity EnsureScope and its DTO EnsureScopeDTO.
 */
@Mapper(componentModel = "spring", uses = {})
public interface EnsureScopeMapper extends EntityMapper <EnsureScopeDTO, EnsureScope> {
    
    
    default EnsureScope fromId(Long id) {
        if (id == null) {
            return null;
        }
        EnsureScope ensureScope = new EnsureScope();
        ensureScope.setId(id);
        return ensureScope;
    }
}
